import lireg from "@/api/axios";
// 客户分类
export default {
  /**
 * @description: 获取投入类型管理类型树状图 *代表必填
 * @param {String/Number} page *
 * @param {String/Number} size *
 * @param {Object} entity {componyId: 1} *
 * @param {String} order 排序方式 ASC DESC 默认ASC
 * @param {String} sort 自定义排序方式 'createTime'
 * @return {Array}
 */
  // 添加
  add(params) {
    return lireg.post('/v3/inventory/customerType/add', params)
  },
  // 批量添加
  batchAdd(params) {
    return lireg.post('/v3/inventory/customerType/addList', params)
  },
  // 编号删除
  numberDel(params) {
    return lireg.get(`/v3/inventory/customerType/delByNo?no=${params}`)
  },
  // 编号批量删除
  numberBatchDel(params) {
    return lireg.post('/v3/inventory/customerType/delListByNo', params)
  },
  // 修改
  edit(params) {
    return lireg.post('/v3/inventory/customerType/edit', params)
  },
  // 条件查询
  conditionQuery(params) {
    return lireg.post('/v3/inventory/customerType/queryByCondition', params)
  },
  // 编号查询
  numberQuery(params) {
    return lireg.get(`/v3/inventory/customerType/queryByNo?no=${params}`)
  },
  // 编号批量查询
  numberBatchQuery(params) {
    return lireg.post('/v3/inventory/customerType/queryListByNo', params)
  },
  // 分页查询
  pageQuery(params) {
    return lireg.post('/v3/inventory/customerType/queryPageByCondition', params)
  }
}
